package com.iot.ic.service;

import com.iot.ic.dao.CompetitionMapper;
import com.iot.ic.model.Competition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by xiuge on 2017/7/11.
 */
@Service
public class CompetitionServiceImpl implements CompetitionService {

    @Autowired
    private CompetitionMapper competitionMapper;

    @Override
    public List<Competition> getCompetitionList(){
        List<Competition>competitions=competitionMapper.selectAllCompetition();
        return  competitions;
    }

}
